package com.smart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.smart.model.domain.ManageTempUserRegistrationDO;
import com.smart.model.request.ManageTempUserRegistrationRequest;
import com.smart.model.request.ProjectRequest;
import com.smart.model.vo.ManageTempUserRegistrationVO;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author zyh
 */
public interface ManageTempUserRegistrationService extends IService<ManageTempUserRegistrationDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
     ManageTempUserRegistrationVO getByKey(long id);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<ManageTempUserRegistrationVO> listQuery(ManageTempUserRegistrationRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Object add(ManageTempUserRegistrationRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(ManageTempUserRegistrationRequest request);
    /**
     * 根据主键删除
     * @param id
     * @return
     */
    Boolean deleteByKey(long id);

    Object verify(ManageTempUserRegistrationRequest request);

    PageInfo<List<ManageTempUserRegistrationVO>> supervisePageQueryTempRecordsByProject(ManageTempUserRegistrationRequest request, Pageable pageable);

    PageInfo<List<ManageTempUserRegistrationVO>> supervisePageQueryTempRecordsByPerson(ManageTempUserRegistrationRequest request, Pageable pageable);

    Object superviseVerify(ProjectRequest request);

    Object superviseAddress();

    Object verifyAfterWrite(ManageTempUserRegistrationRequest request);
}
